/**
 * 
 */
package org.o14x.alpha.ui.commands.rename;

import org.eclipse.jface.dialogs.InputDialog;
import org.eclipse.swt.widgets.Shell;
import org.o14x.alpha.ui.controller.UIController;
import org.o14x.alpha.util.Messages;

/**
 * Dialog window for file renaming.
 * 
 * @author Olivier DANGREAUX
 */
public class RenameInputDialog extends InputDialog {
	private UIController uiController;

	/**
	 * Creates a new instance of RenameInputDialog.
	 *
	 * @param parentShell The parent Shell.
	 * @param initialValue Initial value for the new file name.
	 * @param validator Validator for the input.
	 */
	public RenameInputDialog(Shell parentShell, String initialValue, RenameInputValidator validator) {
		super(parentShell, Messages.getString("RenameInputDialog.dialog_title"), Messages.getString("RenameInputDialog.field"), initialValue, validator); //$NON-NLS-1$ //$NON-NLS-2$
	}	

	/**
	 * Returns the value of uiController.
	 *
	 * @return The value of uiController.
	 */
	public UIController getUiController() {
		return uiController;
	}

	/**
	 * Sets the value of uiController.
	 *
	 * @param uiController The value of uiController to set.
	 */
	public void setUiController(UIController uiController) {
		this.uiController = uiController;
	}
	
	

}
